﻿using DapperExtensions;
using Nova_DAL;
using Nova_MOD;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Nova_BLL
{
    public class TSizeDefineMainBll
    {
        private readonly TSizeDefineMainDal dal = new TSizeDefineMainDal();

        public List<TSizeDefineMain>  GetList(int showColor = 1)
        {
            var predicate = Predicates.Field<TSizeDefineMain>(t => t.ShowColor, Operator.Eq, showColor);
            return dal.GetList(predicate);  
        }
    }
}
